﻿using LuDragon.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuDragon.IService.System
{
    /// <summary>
    /// 系统设置服务接口
    /// </summary>
    public interface INavigationService : IBaseService<Sys_Navigation>
    {
        /// <summary>
        /// 获取导航列表
        /// </summary>
        /// <param name="roleId">角色ID</param>
        /// <returns></returns>
        List<Sys_Navigation> GetNavigationList(int roleId);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Sys_Navigation Find(int id);

        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Sys_Navigation Save(Sys_Navigation model);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Del(int id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Del(Sys_Navigation model);
        /// <summary>
        /// 菜单保存排序
        /// </summary>
        /// <param name="idArr"></param>
        /// <param name="sortArr"></param>
        bool SaveSort(string[] idArr, string[] sortArr);
    }
}
